var $sfq = (function() {
	function dianji(x) {
		for(var i = 0; i < x.length; i++) {
			(function(a) {
				var sump = a.querySelectorAll(".pa");
				var divsum = a.querySelectorAll(".diva");
				for(var k = 0; k < sump.length; k++) {
					(function(b) {
						sump[b].onclick = function() {
							if(new RegExp("\\b" + "block" + "\\b").test(divsum[b].className)) {
								$.removeclass(divsum[b], "block");
								$.removeclass(sump[b], "dianji");
							} else {
								guanbi(a);
								$.addclass(sump[b], "dianji");
								$.addclass(divsum[b], "block");
							}

						}
					})(k)
				}
			})(x[i])
		}
	}

	function guanbi(y) {
		var div = y.querySelectorAll(".diva");
		var p = y.querySelectorAll(".pa");
		for(var yi = 0; yi < div.length; yi++) {
			$.removeclass(div[yi], "block");
		}
		for(var pi = 0; pi < p.length; pi++) {
			$.removeclass(p[pi], "dianji");
		}
	}
	return dianji;

})()